/**
 * Images. 
 * by Alvaro Lopez and Juan Baquero
 * 
 *Put your VYM files inside the data Sketch folder.
 *Press the arrow keys or click the nodes for browse the map.
 *
 *IMAGES:
 *Put your pics inside the "data/images" folder builded from VYM. You can  
 *ignore it or delete the default images, and replace them with your own.
 *For show the images, press the 'I' button om the sketch.
 */

import remixlab.remixvym.*;

void setup() {

  /* This example show the custom creation of a MindMap and XML 
   * Reader later, and can handle the Mind Map Structure
   */

  size(800,600,P2D);
  map = new MindMap();
  PXMLReader xml = new PXMLReader(this);
  //Load the XML file created from VYM.
  map.create("Example-image.xml", xml);
  graph = new SceneMindMap(this);                            
  graph.setMap(map);  		
}

void draw() {
  graph.paint();
}		
SceneMindMap graph;
MindMap map;
